package com.sxt.bus.service.impl;

import com.sxt.bus.domain.Charge;
import com.sxt.bus.mapper.ChargeMapper;
import com.sxt.bus.service.ChargeService;
import com.sxt.bus.vo.ChargeVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author WanMing
 * @date 2019/2/10 20:22
 */

@Service
public class ChargeServiceImpl implements ChargeService {

    @Autowired
    private ChargeMapper chargeMapper;

    /**
     * 修改费用
     *
     * @param chargeVo
     */
    @Override
    public void updateCharge(ChargeVo chargeVo) {
        chargeMapper.updateByPrimaryKeySelective(chargeVo);
    }

    /**
     * 查询所有
     *
     * @param chargeVo
     * @return
     */
    @Override
    public List<Charge> queryAllCharge(ChargeVo chargeVo) {

        return chargeMapper.queryAllCharge(chargeVo);
    }
}
